<!-- 订单商品信息 -->
{{if !empty($module_data) and !empty($module_data['items'])}}
    <p class="am-margin-bottom-sm">
        <strong class="am-icon-bookmark-o"> {{$module_data.order_no}}</strong>
        {{if !empty($module_data['warehouse_name'])}}
            <span class="am-icon-map-marker am-fr"> {{$module_data.warehouse_name}}</span>
        {{/if}}
    </p>
    <hr data-am-widget="divider" class="am-divider am-divider-dashed am-margin-top-0" />
    {{foreach $module_data.items as $item}}
        <div class="am-nbfc">
            <a href="{{$item.goods_url}}" target="_blank">
                <img src="{{$item.images}}" class="am-img-thumbnail am-radius am-margin-right-xs am-fl" width="60" height="60" />
            </a>
            <div class="am-nbfc">
                <a href="{{$item.goods_url}}" target="_blank" class="am-nowrap-initial">{{$item.title}}</a>
                {{if !empty($item.spec)}}
                    <ul class="goods-spec am-margin-top-xs">
                        {{foreach $item.spec as $spec}}
                            <li>{{$spec.type}}：{{$spec.value}}</li>
                        {{/foreach}}
                    </ul>
                {{/if}}
            </div>
        </div>
        <div class="am-nbfc am-margin-top-xs">
            {{if $item.original_price gt 0}}
                <span class="original-price am-margin-right-xs">{{$module_data.currency_data.currency_symbol}}{{$item.original_price}}</span>
            {{/if}}
            <span>{{$module_data.currency_data.currency_symbol}}{{$item.price}}x{{$item.buy_number}}</span>
            {{if $item['returned_quantity'] gt 0 or $item['refund_price'] gt 0}}
                <span class="am-text-danger am-margin-left-lg">已退 {{$item.returned_quantity}} / {{$module_data.currency_data.currency_symbol}}{{$item.refund_price}}</span>
            {{/if}}

            <div class="am-fr">
                {{if ($module_data['is_can_launch_aftersale'] eq 1 or !empty($item['orderaftersale'])) and !empty($item['orderaftersale_btn_text'])}}
                <a href="{{:MyUrl('index/orderaftersale/detail', ['oid'=>$module_data['id'], 'did'=>$item['id']])}}" target="_blank">
                    {{if empty($item['orderaftersale'])}}
                        {{$item.orderaftersale_btn_text}}
                    {{else /}}
                        <span class="{{if $item['orderaftersale']['status'] eq 3}}am-text-success{{else /}}am-text-secondary{{/if}}">{{$item.orderaftersale_btn_text}}</span>
                    {{/if}}
                </a>
            {{/if}}
            </div>
        </div>
        <hr data-am-widget="divider" class="am-divider am-divider-dashed" />
    {{/foreach}}
    <div class="am-margin-top-sm">{{$module_data.describe}}</div>
{{/if}}